# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-locale-po
pkgver=0.27
pkgrel=9
pkgdesc="Perl/CPAN Module Locale::PO: PO parser"
arch=(any)
url="https://search.cpan.org/dist/Locale-PO"
license=("GPL" "Artistic")
source=("https://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Locale-PO-$pkgver.tar.gz")
sha256sums=('3c994a4b63e6e4e836c6f79a93f51921cab77c90c9753fe0f8b5429220d516b9')

build() {
  cd "$srcdir"/Locale-PO-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Locale-PO-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
